package jzoffer;

/**
 * @author MaoLin Wang
 * @date 2020/10/7 10:10 上午
 */
public class 打印1到最大的n位数 {
    public static int[] print1ton(int n){
       int end= (int) (Math.pow(10,n)-1);
       int[]res=new int[end];
        for (int i = 0; i < end; i++) {
            res[i]=i+1;
        }
        return res;

    }
}
